/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package khoa;

/**
 *
 * @author JV-SL1001
 */
public class TestMatrix {

    public static void main(String[] args) {
        int[][] matrix = new int[5][];
        for (int i = 0; i < 5; i++) {
            matrix[i]=new int[i];
            for (int j = 0; j <i; j++) {

                matrix[i][j] = i * j;
            }

        }
        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < i; j++) {
                matrix[i][j] = i * j;

            }

        }

// print matrix

        TestMatrix t = new TestMatrix();
        for (int i = 0; i < matrix.length; i++) {

            t.printArray(matrix[i]);
        }




    }

    public void printArray(int[] array) {
        System.out.print('<');
        for (int i = 0; i < array.length; i++) {
            System.out.print(array[i]);
            if ((i + 1) < array.length) {
                System.out.print(" ,  ");

            }

        }
        System.out.println('>');
    }
}
